package cn.java76.spring1.gardon;
import java.util.*;
/**
 * @author oldliu
 * @since 1.0
 */
public class MyGardon {
    private String addr;
    private String name;
    private String telephone="62899555";
    private String []cars=new String[0];//车辆
    private List<String> flows=new ArrayList<>();
    //key是名字， value是职务
    private Map<String,String> employes=new HashMap<>();

    public void showInfo(){
        System.out.println("这个花园地址"+addr+",名字叫"+name);
        System.out.println("电话是"+telephone);
        System.out.println("培育的品种有:"+flows);
        System.out.println("车辆信息:"+Arrays.toString(cars));
        System.out.println("员工信息如下：");
        for(Map.Entry<String, String> x :employes.entrySet()){
            System.out.println(x.getKey()+"，职务是 "+x.getValue());
        }
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public void setAddr(String addr) {
        this.addr = addr;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setFlows(List<String> flows) {
        this.flows = flows;
    }

    public void setEmployes(Map<String, String> employes) {
        this.employes = employes;
    }
}
